package com.mch.func.file.html;

import java.util.ArrayList;
import java.util.List;

import org.mch.biz.cons.ConsBtn;
import org.mch.swingm.core.MButton;
import org.mch.swingm.obj.MItem;

public class HTMLFileModel {

	public List<MItem> getFieldItems() {
		List<MItem> items = new ArrayList<MItem>();
		items.add(new MItem("funcid", "ID", false, false));
		items.add(new MItem("nodecode", "节点编码"));
		items.add(new MItem("nodename", "节点名称"));
		items.add(new MItem("ordercode", "排序编码").setIsedit(false));
		items.add(new MItem("classname", "Panel类名称").setTextwidth(300));
		items.add(new MItem("hinttext", "提示信息"));
		items.add(new MItem("memo", "备注").setTextwidth(300));
		return items;
	}

	public List<MButton> getButtons() {
		List<MButton> items = new ArrayList<MButton>();
		items.add(new MButton("新增", ConsBtn.add));
		items.add(new MButton("修改", ConsBtn.edit));
		items.add(new MButton("取消", ConsBtn.cancel));
		items.add(new MButton("保存", ConsBtn.save));
		return items;
	}

}
